package com.heima.zuoye.day03.timu4;

import java.util.Objects;

public class Test1 {
    public static void main(String[] args) {
        Student s1 = new Student("小明", 18, "男");
        Student s2 = new Student("小明", 18, "男");
        System.out.println(s1);
        System.out.println(s1.equals(s2));
        System.out.println(Objects.equals(s1, s2));
    }
}
